
import 'package:get/get.dart';

import '../../demo/dialog/MyDialog.dart';
import '../../super_put_controller.dart';
import '../app_doorbell_set_state.dart';


/// TopIndex 控制器
mixin TimeSelectorLogic on SuperPutController<app_doorbell_setState> {
  var selectedIndex = 0.obs;
  @override
  void initPut() {
    lazyPut<TimeSelectorLogic>(this);
    super.initPut();
  }

  void onTap(int index) async {
    if(index ==3&&!await Get.dialog(Mydialog())){
      return;
    }
    // 1.设置ui
    selectedIndex.value = index;
    // 2.发送cgi

    // widget.onChanged?.call(index, widget.options[index]);
  }
}
